<template>
  <div>
    <h1>$parent跟$children的使用</h1>
      <p>{{message}}</p>
    <child />
  </div>
</template>

<script>
import child from './child'
export default {
  name: 'Index',
  components: {
    child
  },
  data() {
    return {
      message: 'hello'
    }
  }
}
</script>

<style scoped>

</style>
